package com.swak.monitor.flux.web;

import org.springframework.beans.factory.annotation.Autowired;

import com.swak.annotation.Post;
import com.swak.annotation.RestService;
import com.swak.entity.Result;
import com.swak.monitor.flux.service.FluxMonitorService;

@RestService(value = "FluxApi", path = "/api/monitor/flux")
public class FluxApi {

	@Autowired
	private FluxMonitorService fluxService;

	/**
	 * 提供的服务： 后期提供分页
	 * 
	 * @return
	 */
	@Post(value = "/apis")
	public Result apis() {
		return Result.success(fluxService.apis());
	}

	/**
	 * 指定 - 提供的服务
	 * 
	 * @param monitors
	 * @param synchronizers
	 * @return
	 */
	@Post(value = "/api")
	public Result services(String service) {
		return Result.success(fluxService.services(service));
	}
}